package org.wm.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import org.wm.domain.SysLogininfor;
import org.wm.mapper.SysLogininforMapper;
import org.wm.service.ISysLogininforService;

/**
 * 系统访问日志情况信息 服务层处理
 * (已按照 Mybatis-Plus 混合模式进行改造)
 */
@RequiredArgsConstructor
@Service
public class SysLogininforServiceImpl extends ServiceImpl<SysLogininforMapper, SysLogininfor> implements ISysLogininforService {

    @Override
    public IPage<SysLogininfor> selectLogininforPage(Page<SysLogininfor> page, SysLogininfor logininfor) {
        return baseMapper.selectLogininforList(page, logininfor);
    }

    @Override
    public void cleanLogininfor() {
        baseMapper.cleanLogininfor();
    }
}